package com.hdrx.fundhelper.service.fund;

import com.hdrx.fundhelper.mapper.FundInfoMapper;
import com.hdrx.fundhelper.dao.pojo.FundInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: houdx
 * @description:
 * @date: 2023/6/15 14:09
 */
@Service
@Slf4j
public class FundInfoService {

    @Resource
    private FundInfoMapper fundInfoMapper;

    public void addFundInfo(FundInfo fundInfo) {
        try {
            fundInfoMapper.insert(fundInfo);
        } catch (Exception e) {
            log.error("add error {}",e.getMessage());
        }
    }

    public List<FundInfo> queryFundInfo() {
       return new ArrayList<>();
    }
}
